namespace CSharpPro._1014;

public class Demo
{
    public static void Sort(double[] a)
    {
        double temp;
        for (int i = 0; i < a.Length; i++)
        {
            for (int j = 0; j < a.Length; j++)
            {
                if (a[j] < a[j + 1])
                {
                    temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }
            }
        }
    }
}
public class Student
{
    public static int count = 0;
    public int id;
    public string name;
    public int age;
    public int score;
    public Student(int id, string name, int age, int score)
    {
        this.id = id;
        this.name = name;
        this.age = age;
        this.score = score;
        count++;
    }
    public void ShowInfo()
    {
        Console.WriteLine($"学号：{id}，姓名：{name}，年龄：{age}，成绩：{score}");
    } 
    public static void ShowCount()
    {
        Console.WriteLine($"学生总数：{count}");
    }
}